class CustomBullet < BulletRunner



  def initialize(fireElement, parent, source, params)
    super(fireElement, parent, source, params)

    @image        = nil
    @rect         = nil

    @half_width   = 0
    @half_height  = 0

  end



  def setImage(image, rect)

    @image        = image
    @rect         = rect

    @half_width   = @rect[2]/2.0
    @half_height  = @rect[3]/2.0

  end



  def draw
    @image.blit(@source.controller.screen, [@x-@half_width,@y-@half_height], @rect)
  end

end